package org.groupg.practice.configuration;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

public class AppConfig {
    private String name;
    private int version;
    private BigDecimal price;
    private LocalDate releaseDate;
    private List<String> modules;
    private List<Integer> ports;
    private List<User> users;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public LocalDate getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(LocalDate releaseDate) {
        this.releaseDate = releaseDate;
    }

    public List<String> getModules() {
        return modules;
    }

    public void setModules(List<String> modules) {
        this.modules = modules;
    }

    public List<Integer> getPorts() {
        return ports;
    }

    public void setPorts(List<Integer> ports) {
        this.ports = ports;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    // Getters & Setters
    @Override
    public String toString() {
        return "AppConfig{\n" +
               "  name='" + name + "'\n" +
               "  version=" + version + "\n" +
               "  price=" + price + "\n" +
               "  releaseDate=" + releaseDate + "\n" +
               "  modules=" + modules + "\n" +
               "  ports=" + ports + "\n" +
               "  users=" + users + "\n" +
               "}";
    }
}